package com.smart.sso.server.model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * 
 * @author ian
 * @email ian.ren121@gmail.com
 * @date 2022-05-18 10:28:01
 */
@Data
@AllArgsConstructor
@TableName("tb_user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer userId;
	/**
	 * 
	 */
	private String userPic;

	private String password;
	/**
	 * 
	 */
	private String phone;
	/**
	 * 0 未审核
	 * 1 已审核
	 */
	private Integer ifCertificated;
	/**
	 * 
	 */
	private Integer cardId;
	/**
	 * 
	 */
	private String identityId;
	/**
	 * 
	 */
	private String nickName;
	/**
	 * 
	 */
	private Long integral;
	/**
	 * 
	 */
	private Integer creditScore;
	/**
	 * 
	 */
	private Long loanAmount;
	/**
	 * 
	 */
	private Integer checkDays;

	public UserEntity(Integer userId, String password, String nickName) {
		this.userId = userId;
		this.password = password;
		this.nickName = nickName;
	}
}
